﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SourceCodeIoc.Attributes
{
    /// <summary>
    /// IOC类型过滤特性
    /// 规则：被标注的类型，才能去创建对象
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class IOCService : Attribute
    {
        // 1、加生命周期
        public string _serviceLifetime { get; }
        public IOCService(string serviceLifetime)
        {
            _serviceLifetime = serviceLifetime;
        }
    }
}
